﻿@model thailandProject.Models.CLIENT

@{
    ViewBag.Title = "Add Client";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>CLIENT</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.clientFirstName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.clientFirstName)
            @Html.ValidationMessageFor(model => model.clientFirstName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.clientLastName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.clientLastName)
            @Html.ValidationMessageFor(model => model.clientLastName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.clientEmail)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.clientEmail)
            @Html.ValidationMessageFor(model => model.clientEmail)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.clientStateProvidence)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.clientStateProvidence)
            @Html.ValidationMessageFor(model => model.clientStateProvidence)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.clientNotes)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.clientNotes)
            @Html.ValidationMessageFor(model => model.clientNotes)
            @Html.DisplayFor(model => model.clientNotes)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.clientPassportNum)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.clientPassportNum)
            @Html.ValidationMessageFor(model => model.clientPassportNum)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.clientAddress)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.clientAddress)
            @Html.ValidationMessageFor(model => model.clientAddress)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.clientCity)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.clientCity)
            @Html.ValidationMessageFor(model => model.clientCity)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ccISO2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ccISO2)
            @Html.ValidationMessageFor(model => model.ccISO2)
        </div>

        <div class="p_submit">
            <input type="submit" value="Create" />
        </div>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
